package com.lzp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 项目启动类
 *
 * @author lzp
 * @date 2020/6/24
 */
@SpringBootApplication
// 扫描mybatis 通用mapper所在的包
@MapperScan(basePackages = "com.lzp.mapper")
// 扫描指定位置
@ComponentScan({"com.lzp", "org.n3r.idworker"})
// 启动定时操作
@EnableScheduling
// @EnableRedisHttpSession // 开启使用redis作为 spring session
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
